package ace.module.sms.core.impl.controller.rest.rpc;

import ace.cmp.security.oauth2.resource.server.core.annotation.PreAuthorizeIsInternalClient;
import ace.module.common.api.annotation.ApiRemoteImplementPriority;
import ace.module.sms.api.SmsApi;
import ace.module.sms.sdk.core.feign.impl.SmsFeign;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.experimental.Delegate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Caspar rpc 入口
 */
@Tag(name = "短信服务-RPC-API")
@AllArgsConstructor
@RestController
@RequestMapping(SmsFeign.PATH)
@PreAuthorizeIsInternalClient
@ApiRemoteImplementPriority
public class SmsRpcController implements SmsFeign {

  @Delegate
  private final SmsApi smsApi;
}
